package com.shanghaionstar.report.bean;

/**
 *
 */
public class LocationDTO {
    private double longitude;

    private double latitude;

    private String currentIP;

    private String address;

    public int getNetwork() {
        return network;
    }

    public void setNetwork(int network) {
        this.network = network;
    }

    private int network;

    public LocationDTO() {
    }

    public LocationDTO(double longitude, double latitude, String currentIP, String address,int network) {
        this.longitude = longitude;
        this.latitude = latitude;
        this.currentIP = currentIP;
        this.address = address;
        this.network = network;
    }

    public static class LocationBuilder {
        private double longitude;

        private double latitude;

        private String currentIP;

        private String address;

        private int network;

        public LocationBuilder longitude(double longitude) {
            this.longitude = longitude;
            return this;
        }
        public LocationBuilder network(int network) {
            this.network = network;
            return this;
        }

        public LocationBuilder latitude(double latitude) {
            this.latitude = latitude;
            return this;
        }

        public LocationBuilder currentIP(String currentIP) {
            this.currentIP = currentIP;
            return this;
        }

        public LocationBuilder address(String address) {
            this.address = address;
            return this;
        }

        public LocationDTO createLocationDTO() {
            return new LocationDTO(longitude, latitude, currentIP, address,network);
        }
    }


    public double getLongitude() {
        return longitude;
    }


    public double getLatitude() {
        return latitude;
    }


    public String getCurrentIP() {
        return currentIP;
    }


    public String getAddress() {
        return address;
    }


    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public void setCurrentIP(String currentIP) {
        this.currentIP = currentIP;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
